"use strict";


function ServerTime() {
	this.type = 'ServerTime';
	this.ver = '1.0.0';
}

// format function(arg, arg[, cb])
ServerTime.prototype.getCurrTime = function(arg1, arg2, cb) {
	console.log(" [service] timeRemote - arg1: " + arg1 + "; " + "arg2: " + arg2);
	var d = new Date();
	var hour = d.getHours();
	var min = d.getMinutes();
	var sec = d.getSeconds();
	cb(null, hour, min, sec);
};

ServerTime.prototype.add = function(arg1, arg2, cb) {
	cb("error");
};

ServerTime.prototype.echo = function(arg1, cb) {
	cb(null, arg1);
}


module.exports = ServerTime;